package com.idea.editor.lang;

import com.idea.editor.util.DocumentProvider;
import com.idea.editor.util.Flag;
import com.idea.editor.util.Lexer;
import com.idea.editor.util.Pair;
import com.idea.editor.util.TextWarriorException;

import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenSource;

import java.util.ArrayList;

import static com.idea.editor.util.Lexer.*;

public class LexerTokenizer {
	private static LexerTokenizer _theOne = null;
	//private LexerTokenizer() {}
	public static LexerTokenizer getInstance() {
		if (_theOne == null) {
			_theOne = new LexerTokenizer();
		}
		return _theOne;
	}

	public ArrayList<Token> tokenize(DocumentProvider hDoc, Flag _abort) {
		Language language = Lexer.getLanguage();
		ArrayList<Token> tokens = new ArrayList<Token>();

			tokens.add(new Token() {
				@Override
				public String getText() {
					return null;
				}

				@Override
				public int getType() {
					return 0;
				}

				@Override
				public int getLine() {
					return 0;
				}

				@Override
				public int getCharPositionInLine() {
					return 0;
				}

				@Override
				public int getChannel() {
					return 0;
				}

				@Override
				public int getTokenIndex() {
					return 0;
				}

				@Override
				public int getStartIndex() {
					return 0;
				}

				@Override
				public int getStopIndex() {
					return 0;
				}

				@Override
				public TokenSource getTokenSource() {
					return null;
				}

				@Override
				public CharStream getInputStream() {
					return null;
				}
			});
			return tokens;
	}
}
